package com.xzy.custom;

import lombok.Data;

/**
 * TODO70
 *
 * @author Administrator
 * ClassName: Page
 * date: 2021/12/6 10:21
 */
@Data
public class Page {
    //当前页
    private Integer page = 1;
    // 每页大小
    private Integer rows = 10;
    // 总记录数
    private Integer totalRecord;
    // 总页数
    private Integer totalPage;

    //分页开始位置
    private Integer start;

    private String keyWord;

    private String keyWord2;

    public Integer getStart() {
        start=(page-1)*rows;
        return start;
    }
    public void setStart(Integer start) {
        this.start = start;
    }

}
